package com.example.mapper.configuration;

import com.example.bean.configuration.XiangZhiGuanLi;
import com.example.bean.configuration.vo.XiangZhiGuanLiVo;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface XiangZhiGuanLiMapper {

    List<XiangZhiGuanLi> getpage(XiangZhiGuanLiVo vo);

    Integer addxzgl(XiangZhiGuanLi xiangZhiGuanLi);
    @Select("select * from xiangzhi where noid = #{aid}")
    XiangZhiGuanLi getId(String aid);
    @Update("update xiangzhi set pgz_name = #{pgzname}, status = #{status}, miaoshu = #{miaoshu}, fenzhi = #{fenzhi}, kj_type = #{kjtype}, update_date = #{updatedate} where noid = #{noid}")
    Integer xiugai(XiangZhiGuanLi xiangZhiGuanLi);
    @Update("update xiangzhi set status = 0 where noid = #{noid}")
    Integer qidong(String noid);
    @Update("update xiangzhi set status = 1 where noid = #{noid}")
    Integer jinyong(String noid);

    Integer dels(List<String> ids);
}
